<%= error_messages_for :post %>
<% form_for :post, :url => {:controller => 'admin/posts', :action => 'create'}, :html => {:multipart => true} do |f| -%>
<fieldset>
    <legend>Create new post</legend>

   <%= render :partial => 'form', :object => f %>
   
    <p><%= submit_tag 'Create' %></p>
</fieldset>
<% end -%>